Skip to content

fix: Sort date pair on range close in ThemedDateTimeRangePicker#137

Merged
ManuelRomeroA merged 1 commit into
mainfrom
development
May 12, 2026
Merged

fix: Sort date pair on range close in ThemedDateTimeRangePicker#137
ManuelRomeroA merged 1 commit into
mainfrom
development

Conversation

@ManuelRomeroA
Copy link
Copy Markdown
Contributor

When the range was picked in reverse order (later day first, earlier day second), startDate/endDate were kept in selection order and only sorted at save time. Times entered in the Time tab were glued to the wrong endpoint, so the saved [start, end] list had each time pointing at the opposite date. Sort the date pair the moment the second tap closes the range, so the Time tab always shows Start = earlier day, End = later day, and each time stays aligned with its intended date.

chore: Bump version to 7.5.31 in pubspec.yaml and .claude/plugin.json
docs: Add 7.5.31 entry to CHANGELOG.md

When the range was picked in reverse order (later day first, earlier day second), startDate/endDate were kept in selection order and only sorted at save time. Times entered in the Time tab were glued to the wrong endpoint, so the saved [start, end] list had each time pointing at the opposite date. Sort the date pair the moment the second tap closes the range, so the Time tab always shows Start = earlier day, End = later day, and each time stays aligned with its intended date.

chore: Bump version to 7.5.31 in pubspec.yaml and .claude/plugin.json
docs: Add 7.5.31 entry to CHANGELOG.md
@github-actions
Copy link
Copy Markdown

📋 Changelog Summary

This PR includes the following changes:

🐛 Bug Fixes

📚 Documentation

📊 Diff Stats

Metric Count
📄 Files changed 4
🟢 Insertions $\color{green}\textsf{+12}$
🔴 Deletions $\color{red}\textsf{-7}$

🤖 Auto-generated by changelog workflow

@github-actions
Copy link
Copy Markdown

📊 Test Coverage Report

🎯 Dart/Flutter

Metric Value
Coverage 16.5%
Lines covered 10866 / 127
Lines missing -10739

🤖 Generated by coverage workflow

@ManuelRomeroA ManuelRomeroA merged commit 59aa5ba into main May 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant